home *** CD-ROM | disk | FTP | other *** search
- PROGRAM NAME: Pfsxfer.PRG
-
- DESCRIPTION: Program to transfer data from PFS:FILE to dBASE
- III.
-
- ISSUE: August, 1985
- PAGE: 32
-
- SOFTWARE VERSIONS: dBASE III, versions 1.0, 1.1
- PFS:FILE
-
- FUNCTION: This program will allow you to transfer data from
- PFS:FILE to dBASE III. Make sure that you follow the
- instructions below to set up your data in PFS:FILE.
-
- FILES NEEDED: Pfsxfer.PRG
- PFS print file (see below)
- dBASE III database file
-
- SETUP INSTRUCTIONS:
- In PFS:FILE:
-
- 1. Make sure each field is no longer than one line.
-
- 2. All blank fields must contain a dummy value. This value
- should be clearly inappropriate in context, such as the z in
- the following PFS record:
-
- first name: Quinn
- last name: Wildman
- address: 10150 W. Jefferson
- city: Culver City state: CA zip: 90230
- home phone: z
- work phone: (213) 204-5570
- category: z
-
- We use the z as a flag to identify blank fields to dBASE III.
-
- 3. Select print from the main menu.
-
- 4. Enter no to printing item names.
-
- 5. Enter a filename with a .TXT extension, such as
- Newfile.TXT, for the print destination.
-
- 6. Make the number of lines per page equal to the number of
- fields that you have.
-
- 7. Set the number of copies to one.
-
- 8. On the print spec menu, enter an z for every field.
-
- This will generate a file with records in the following format:
-
- Quinn
- Wildman
- 10150 W. Jefferson
- Culver City
- CA
- 90230
- z
- (213) 204-5570
- z
-
- In dBASE III:
-
- 1. Create a database file, Temp.DBF, with one field. Name the
- field Field1. Make sure the width is the size of the largest
- field in your PFS file. For example:
-
- Structure for database: Temp.DBF
- Field Field Name Type Width
- 1 Field1 Character 22
-
- 2. Create a second database file, Final.DBF, with the same number
- of fields as your PFS file. Name them Field1, Field2, etc.,
- making sure that the field sizes are at least as large as the
- largest corresponding PFS:FILE field. For instance, if your
- longest first name is "Aloysius," and your longest last name
- is "Phiziskew," your firstname field should be at least 8
- characters wide, and your lastname field at least 10. Again
- using our sample data, this database file will have the
- following structure:
-
- Structure for database: Final.DBF
- Field Field name Type Width
- 1 Field1 Character 9
- 2 Field2 Character 7
- 3 Field3 Character 22
- 4 Field4 Character 11
- 5 Field5 Character 2
- 6 Field6 Character 5
- 7 Field7 Character 3
- 8 Field8 Character 13
- 9 Field9 Character 1
-
- 3. Type DO Pfsxfer from the dot prompt or within a command file.
- The one-field database filename is the first database file
- created above (in this case, Temp.DBF), and the multi-field
- database filename is the second (Final.DBF here). The name of
- the PFS print file is the filename entered as the print
- destination, and the dummy name is the flag character entered
- in all the blank fields of your PFS file, in this case z.